package com.cipe.cmrs.service;

import java.util.Collection;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cipe.cmrs.model.Imp;

@Service
@Transactional
public class ImpService extends BaseService<Imp> {
    public List<Imp> findallProjectReport(String procedure) {
        return this.dao.getResultListWithNativeQuery(procedure, Imp.class);
    }

    public void deleteAll(Collection<Imp> imps) {
        for (Imp imp : imps) {
            dao.delete(imp);
        }
    }
}
